<template>
  <div class="layout">
    <!-- 二级路由出口 -->
    <router-view></router-view>
    <div class="navs">
        <!-- 二级路由切换结构 -->
        <router-link to="/layout/article">面经</router-link>
        <router-link to="/layout/collect">收藏</router-link>
        <router-link to="/layout/like">点赞</router-link>
        <router-link to="/layout/user">我的</router-link>
    </div>
  </div>
</template>

<script>
export default {
name: 'HmLayout'
}
</script>

<style lang="less" scoped>
.navs {
width:100%;
height:50px;
display: flex;
justify-content: space-evenly;
align-items: center;
background-color: #8DF;

position: fixed;
left: 0;
bottom: 0;

a.active {
    color: red;
}

}
</style>